package com.kuaidi100.sdk.response;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * @Author: api.kuaidi100.com
 * @Date: 2020-09-17 14:24
 */
public class BOrderQueryDataInfo {
    /**
     * 业务服务类型
     */
    private List<String> serviceType;
    /**
     * 支持的快递公司编码
     */
    private String kuaidiCom;

    @Override
    public String toString() {
        try {
            ObjectMapper objectMapper = new ObjectMapper();
            return objectMapper.writeValueAsString(this);
        } catch (Exception e) {
            return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                    .append("serviceType", serviceType)
                    .append("kuaidiCom", kuaidiCom)
                    .toString();
        }
    }

    public List<String> getServiceType() {
        return serviceType;
    }

    public void setServiceType(List<String> serviceType) {
        this.serviceType = serviceType;
    }

    public String getKuaidiCom() {
        return kuaidiCom;
    }

    public void setKuaidiCom(String kuaidiCom) {
        this.kuaidiCom = kuaidiCom;
    }
}
